package cn.huangsm.advance.ratelimiter;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 限流测试
 * @author huang
 * @PACKAGE_NAME cn.huangsm.advance.ratelimiter
 * @PROJECT_NAME advance-code
 * @date 2019/1/19
 */
@RestController
public class TestController {
    @RateLimitAspect
    @GetMapping("/test")
    public String test(){
        return "nihao";
    }
}
